cmake_minimum_required(VERSION 3.16)
project(main CXX)

# 1、指定静态库头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)
# 2、指定静态库目录
link_directories(${PROJECT_SOURCE_DIR}/static_lb)
# 3、链接静态库
add_executable(main main.cpp)
target_link_libraries(main PUBLIC animal_SHARED)